from jili.trade.old import ctptrade


class posapi():
    def create(self,brokerid,investid,iscalc=True,type="ctp"):
        if type=="ctp":
            return ctptrade.ctppos(brokerid, investid, iscalc)
        else:
            return ctptrade.ctppos(brokerid, investid, iscalc)
class qryapi():
    def create(self,brokerid,investid,iscalc=True,type="ctp"):
        if type=="ctp":
            return ctptrade.ctp_qry(brokerid, investid)
        else:
            return ctptrade.ctp_qry(brokerid, investid)